import http from '../request'

//发送验证码
export function getCode(data){
    return  http.post('/get/code',data)
}


// 注册用户
export function userAuthentication(data){
    return  http.post('/user/authentication',data)
}

//登录接口
export function login(data){
    return  http.post('/login',data)
}

//权限管理列表
export function authAdmin(params){
    return  http.get('/auth/admin',{params})
}

//菜单权限数据
export function userGetMenu(){
    return  http.get('/user/getmenu')
}

//菜单权限修改
export function userSetMenu(data){
    return  http.post('/user/setmenu',data)
}

//菜单权限列表
export function Menulist(params){
    return  http.get('/menu/list',{params})
}

//权限下拉列表
export function menuSelectList(){
    return http.get('menu/selectlist')
}

//用户数据据修改
export function updateUser(data) {
    return  http.post('/update/user',data)
}

//用户菜单权限
export function menuPermissions(){
    return http.get('/menu/permissions')
}